package com.suneee.store.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

@Entity
@Table(name = "t_stock_record")
public class StockRecord implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1396681079729179851L;
	/**
	 * 单号ID
	 */
	@Id
	@GeneratedValue
	@Column(name="record_id",nullable=false)
	private String recordId;
	/**
	 * 企业编码
	 */
	@Column(name="enterprise_code",nullable=false)
	private String enterpriseCode;
	/**
	 * 类型
	 */
	@Column(name="stock_type")
	private String stockType;
	/**
	
	/**
	 * 操作仓（从那个店铺仓库出货）
	 */
	@Column(name="operate_store_id")
	private Integer operateStoreId;
	/**
	 * 关联仓（入到那个店铺仓库）
	 */
	@Column(name="relevant_store_id")
	private Integer relevantStoreId;
	/**
	 * 出入库类型
	 */
	@Column(name="record_type")
	private String recordType;
	/**
	 * 说明
	 */
	@Column(name="remark")
	private String remark;
	/**
	 * 创建时间
	 */
	@Column(name="create_time")
	private Timestamp createTime;
	/**
	 * 创建人
	 */
	@Column(name="create_user_id")
	private Integer createUserId;
	/**
	 * 相关信息
	 */
	@Column(name="relevant_info")
	private String relevantInfo;
	
	/**
	 * 操作仓库所属渠道
	 */
	@Column(name="operate_channel_code")
	private String operateChannelCode;
	
	/**
	 * 关联仓库所属渠道
	 */
	@Column(name="relevant_channel_code")
	private String relevantChannelCode;
	
	
	@Column(name="channel_code")
	private String channelCode;
	
	/**
	 * 店铺id
	 */
	@Transient
	private Integer shopId;
	
	@Transient
	private List<StockDetail> stockDetailList;
	
	public String getRecordId() {
		return recordId;
	}
	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}
	public String getEnterpriseCode() {
		return enterpriseCode;
	}
	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}
	public String getStockType() {
		return stockType;
	}
	public void setStockType(String stockType) {
		this.stockType = stockType;
	}
	public String getRecordType() {
		return recordType;
	}
	public void setRecordType(String recordType) {
		this.recordType = recordType;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Integer getCreateUserId() {
		return createUserId;
	}
	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}
	public String getRelevantInfo() {
		return relevantInfo;
	}
	public void setRelevantInfo(String relevantInfo) {
		this.relevantInfo = relevantInfo;
	}
	public List<StockDetail> getStockDetailList() {
		return stockDetailList;
	}
	public void setStockDetailList(List<StockDetail> stockDetailList) {
		this.stockDetailList = stockDetailList;
	}
	public Integer getShopId() {
		return shopId;
	}
	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}
	public String getOperateChannelCode() {
		return operateChannelCode;
	}
	public void setOperateChannelCode(String operateChannelCode) {
		this.operateChannelCode = operateChannelCode;
	}
	public String getRelevantChannelCode() {
		return relevantChannelCode;
	}
	public void setRelevantChannelCode(String relevantChannelCode) {
		this.relevantChannelCode = relevantChannelCode;
	}
 
	public String getChannelCode() {
		return channelCode;
	}
	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}
	public Integer getOperateStoreId() {
		return operateStoreId;
	}
	public void setOperateStoreId(Integer operateStoreId) {
		this.operateStoreId = operateStoreId;
	}
	public Integer getRelevantStoreId() {
		return relevantStoreId;
	}
	public void setRelevantStoreId(Integer relevantStoreId) {
		this.relevantStoreId = relevantStoreId;
	}
	
}
